<%-- 
    Document   : modifyEvent
    Created on : 7-apr-2014, 10.35.10
    Author     : Mark
--%>

<%@page import="it.evento.EventPrintable"%>
<%@page import="it.evento.Events"%>
<%@page import="java.util.List"%>
<%@page import="it.evento.controllers.Controller"%>
<%@page import="it.evento.utils.genpage.Article"%>
<%@page import="it.evento.utils.genpage.ArticleRow"%>
<%@page import="it.evento.utils.genpage.RowCell"%>
<%@page import="it.evento.Users"%>
<%@page import="it.evento.utils.genpage.BlogPost"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    boolean isLoggedUser = false;
    Users loggedUser = null;
    
    if(session.getAttribute("loggedUser")!=null) {
        loggedUser = (Users)session.getAttribute("loggedUser");
        isLoggedUser = true;
    }
    else {
        isLoggedUser = false;
    }
%>    

<!DOCTYPE html>
<html dir="ltr" lang="it-IT">
    <head>
        <title>EvenTO</title>

        <jsp:include page="html/metadata.jsp"/>
        
         
         
    </head>
    <body>
        <div id="evento-main">
            <!-- header -->
            <jsp:include page="html/header.jsp" />
            <!-- /header -->

            <!-- top-menu -->
            <%@include file="html/top-menu.jsp" %>
            <!-- /top-menu -->

            <div class="evento-sheet clearfix">
                <div class="evento-layout-wrapper">
                    <div class="evento-content-layout">
                        <div class="evento-content-layout-row">
                            <div class="evento-layout-cell evento-content">
                                <% if(isLoggedUser) { %>
                                <h3>Sei in ModifyEvents</h3>
                                    <%
                                        /*
                                         List<EventPrintable> eventsList=(List<EventPrintable>) request.getAttribute("eventsList");
                                                                               
                                         for(EventPrintable e:eventsList){
                                                new BlogPost()
                                                   .setTitle("Your Events")
                                                   .setContent("evento")
                                                   .print() ;                                      
                                         }*/
                                         
                                    %>                                       
                                <% }else{ %>                     
                                    <h3>Non hai i diritti necessari per accedere a questa pagina</h3>
                                <%}%>
                                        
                                  
                                     
                                
                                
                               
                            </div>

                            <!-- sidebar -->
                            <jsp:include page="html/sidebar.jsp" />
                            <!-- /sidebar -->
                            
                        </div>
                    </div>
                </div>

                <!-- footer -->
                <%@include file="html/footer.jsp" %>
                <!-- /footer -->

            </div>
        </div>
    </body>
</html>
